<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Mozilla 1.3a doesn't render the page correctly when DOCTYPE is declared
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
-->
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Language" content="en-us" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<title>phpBBnews :: Manual</title>
<style type="text/css">
<!--
body {
background-color: #868C9C;
padding: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px;
}
a {
color: #000000;
font-weight: bold;
text-decoration: none;
}
a:hover {
color: #000000;
font-weight: bold;
text-decoration: underline;
}
a.menu {
color: #000000;
text-decoration: none;
}
a.menu:hover {
color: #000000;
text-decoration: underline;
}
.heading {
font-family: arial, helvetica, geneva, sans-serif;
font-size: 10pt;
font-weight: bold;
color: #000000;
}
input,textarea, select {
color : #000000;
font-family: arial, helvetica, geneva, sans-serif;
font-size: 8pt;
border-color : #000000;
background-color : #B7BBCB;
border-width: 1px 1px 1px 1px;
}
table.main {
background-color: #F0F1E8;
border-collapse: collapse;
width: 100%;
height: 100%;
}
td.top-logo {
background-color: #F0F1E8;
border-width: 0px 0px 0px 0px;
padding: 0px 0px 0px 10px;
width: 100%;
height: 50px;
font-family: arial, helvetica, geneva, sans-serif;
font-size: 14pt;
font-weight: bold;
text-align: left;
line-height: normal
}
td.top-menu,td.bottom-menu {
background-color: #E4E6DA;
border-style: solid;
border-color: #000000;
border-width: 1px 0px 1px 0px;
padding: 4px 4px 4px 10px;
margin: 0px;
width: 100%;
height: 20px;
font-family: arial, helvetica, geneva, sans-serif;
font-weight: bold;
font-size: 8pt;
color: #000000;
vertical-align: top;
text-align: left;
}
td.main {
background-color: #F9F9F9;
border-style: solid;
border-color: #000000;
border-width: 1px 0px 1px 0px;
padding: 10px 20px 10px 20px;
margin: 0px;
width: 100%;
height: 100%;
font-family: arial, helvetica, geneva, sans-serif;
font-size: 8pt;
color: #000000;
vertical-align: top;
text-align: left;
}
td.bottom-copy {
background-color: #F0F1E8;
border-style: solid;
border-color: #000000;
border-width: 1px 0px 0px 0px;
padding: 4px;
margin: 0px;
width: 100%;
font-family: arial, helvetica, geneva, sans-serif;
font-weight: bold;
font-size: 8pt;
color: #000000;
vertical-align: top;
text-align: left;
}
td.body {
background-color: #ADB2C4;
border-style: solid;
border-color: #000000;
border-width: 1px 1px 1px 1px;
padding: 4px;
margin: 0px;
width: auto;
height: auto;
font-family: arial, helvetica, geneva, sans-serif;
font-size: 8pt;
color: #000000;
vertical-align: top;
text-align: left;
}
td.body2 {
background-color: #ADB2C4;
border-style: solid;
border-color: #000000;
border-width: 1px 1px 1px 1px;
padding: 4px;
margin: 0px;
width: auto;
height: auto;
font-family: arial, helvetica, geneva, sans-serif;
font-size: 8pt;
color: #000000;
vertical-align: middle;
text-align: left;
}
td.body3 {
border-style: solid;
border-width: 0px 0px 0px 0px;
padding: 0px;
margin: 0px;
width: auto;
height: auto;
font-family: arial, helvetica, geneva, sans-serif;
font-size: 8pt;
color: #000000;
vertical-align: top;
text-align: left;
}
-->
</style>
</head>
<body>
<table class="main">
<tr>
<td class="top-logo">phpBBnews</td>
</tr>
<tr>
<td class="top-menu"><span class="heading">Manual</span></td>
</tr>
<tr>
<td class="main"><p><span style="font-weight: bold;">1. What is the purpose of this script</span>
<br />
<span style="font-weight: bold;">2. How does it work</span>
<br />
<span style="font-weight: bold;">3. How do I use it</span>
<br />
<span style="font-weight: bold;">4. Config</span>
<br />
<br />
<span class="heading">1. What is the purpose of this script</span>
<br />
The purpose of this script is to use phpBB 2 for your news management.
And then be able to show the news where ever you want on you site.
<br />
<br />
<span class="heading">2. How does it work</span>
<br />
The script collects the topics for a specific forum and display them
in a order of the last topic first. The information is then formatted
to suit your site's layout.
<br />
<br />
<span class="heading">3. How do I use it</span>
<br />
To use this script you first have to set the configuration options to what suites you.
You can include this script if you want. You do that by using the PHP code:
<span style="color: darkgreen; font-weight: bold;">include('phpbbnews/phpbbnews.php');</span>
<br />
<br />
<span class="heading">4. Config</span>
<br />
There are some settings for you in the config part of this script.
<br />
<br />
<span style="font-weight: bold;">Config: General</span>
<br />
The <span style="color: darkgreen; font-weight: bold;">$pbn['General_phpBB2Path']</span> setting
must be set to the path to the phpBB 2 folder from where the script is executed.
This is very important. If it don't, then the script will fail.
<br />
<br />
<span style="font-weight: bold;">Config: Database</span>
<br />
Here there are basically two options. The first and easiest is to set the
<span style="color: darkgreen; font-weight: bold;">$pbn['DB_phpBB2config']</span> setting to <span style="color: darkgreen; font-weight: bold;">'On'</span>. If this option is set to <span style="color: darkgreen; font-weight: bold;">'On'</span> the script
will use the phpBB 2 config file for the database information.
The other option is to set the <span style="color: darkgreen; font-weight: bold;">$pbn['DB_phpBB2config']</span> setting to <span style="color: darkgreen; font-weight: bold;">'Off'</span>, and then
enter the database information in the following settings.
<br />
<br />
<span style="font-weight: bold;">Config: News</span>
<br />
Here you have some options for the news. The important setting is the
<span style="color: darkgreen; font-weight: bold;">$pbn['News_Forum']</span>. This option is used to decide what the news forums ID is.
The other options are more cosmetic.
But it's important to remember that if you want to use BBCode and smilies, it's
highly recommended that you set the <span style="color: darkgreen; font-weight: bold;">$pbn['News_Length']</span> setting to <span style="color: darkgreen; font-weight: bold;">0</span> to avoid
the problems of cutting the text before a BBCode has been closed properly.
<br />
<br />
<span style="font-weight: bold;">Config: Layout</span>
<br />
Here you can change the layout of how the news is shown.
Explanations:
<pre>
<span style="color: darkgreen; font-weight: bold;">{PATH}</span>         : The path to phpBB 2
<span style="color: darkgreen; font-weight: bold;">{TOPIC_ID}</span>     : The ID for the topic
<span style="color: darkgreen; font-weight: bold;">{TOPIC_TITLE}</span>  : The title of the topic
<span style="color: darkgreen; font-weight: bold;">{TOPIC_POSTER}</span> : The ID of the user who posted the topic
<span style="color: darkgreen; font-weight: bold;">{USERNAME}</span>     : The user name of the topic poster
<span style="color: darkgreen; font-weight: bold;">{TOPIC_TIME}</span>   : The time when the topic got posted
<span style="color: darkgreen; font-weight: bold;">{POST_TEXT}</span>    : The topic message
<span style="color: darkgreen; font-weight: bold;">{COMMENTS}</span>     : The comments
</pre>
<br />
<br />
<span style="font-weight: bold;">Config: Smilies</span>
<br />
Here you can activate or deactivate smilies in the topic.
<br />
<br />
<span style="font-weight: bold;">Config: BBCode</span>
<br />
Here you can activate or deactivate the individual BBCode in the topic.
You can also change the way the BBCode is converted to HTML with the
setting <span style="color: darkgreen; font-weight: bold;">$pbn['BBCode_tpl']</span>.</p></td>
</tr>
<tr>
<td class="bottom-menu">&nbsp;</td>
</tr>
<tr>
<td class="bottom-copy">&nbsp;</td>
</tr>
</table>
</body>
</html>